<?php
/**
 * GPA Description
 * @package 
 * @name user
 * @filesource user.php
 * @author Meta Sanjaya
 */

include_once 'config.php';

ob_start("obgzhandler");

switch ($_GET['act']) {
    case 'register':
        include_once 'register.html.php';
    break;
    case 'check_register':
        include_once 'register.php';
    break;
    case 'login':
        include_once 'login.html.php';
    break;
    case 'check_login':
        include_once 'login.php';
    break;
    default:
        if(!isset($_SESSION['user'])) {
            header('location: user.php?act=login');
        } else {
            include_once 'user.html.php';
        }
}

?>
